shortcut controller: Fix mnemonic cycling
authorMatthias Clasen <mclasen@redhat.com>
Thu, 28 May 2020 12:52:55 +0000 (08:52 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Thu, 28 May 2020 12:52:55 +0000 (08:52 -0400)
commit2d80b105cef17fd790dbe8a0ae2c00a2da028e32
treea18fc22b703f22c0662d8a2b0fc8554117797e4a
parent1f4130b927a5015402f2239ee009af7e8f0e16bc
shortcut controller: Fix mnemonic cycling

Iterate the shortcuts we found in order, not in
reverse. Otherwise, we always end up activating
the last_selected one, since it is last in the
list.

This broke in fb9b54d4b209afc when a list was
turned into an array.
gtk/gtkshortcutcontroller.c